package com.veeder.datacollection.rs232.response;

import java.util.Map;
import java.util.Set;
import java.util.TreeMap;

public class TankResponseReport<T> extends RS232Response{
	private Map<Integer, T> tankValueMap = new TreeMap<Integer, T>();
	
	public void setTankReponse(int tankId, T value){
		tankValueMap.put(tankId, value);
	}
	
	public T getResponse(int tankId){
		return tankValueMap.get(tankId);
	}
	
	public Set<Integer> getAllTanks(){
		return tankValueMap.keySet();
	}
	
}
